package com.direct.ratelimit.threshold;

import java.util.Collection;

import com.direct.ratelimit.RateLimitRequest;

public interface ThresholdService {

	Collection<Threshold> getThresholds(RateLimitRequest rateLimitRequest);

	/**
	 * evaluates if the value has exceeded this threshold
	 * 
	 * @param threshold
	 * @param value
	 *            the number to compare the threshold against
	 * @return
	 */
	boolean isThresholdExceeded(Threshold threshold, long value);
}
